import { IReqApi, IResList, IReq } from '@/api/core'

export const API_GET_HOT_PRODUCT_LIST: IReqApi = {
  title: '首页热门精选列表',
  method: 'POST',
  path: 'homePage/getHotProductList',
  prefix: 'api',
  version: 'applets',
}

// req
export interface IReqGetHotProductList extends IReq {}

// res
export interface IResGetHotProductList extends IResList<IResGetHotProductListItem> {}

// resItem
export interface IResGetHotProductListItem {
  sn: string
  spuSn: string
  cover: string
  title: string
  spuTitle: string
  descriptions: string
  price: number
  priceMarket: number
  unitOfMeasurement: string

  isTimeLimited: boolean
  isHotSale: boolean
  isNewSale: boolean
  // limitedPrice: number
  countDown: string
}
